package DTaskAppRoute;
use Mojo::Base 'Mojolicious';
use 5.018;
use warnings;

use DTaskLinkApp;
use DTaskExportApp;

use DTaskTaskApp;
use DTaskTowerApp;
use DTaskBugzillaApp;

sub startup
{
	warn "call startup";
	my $self = shift;
	my $r = $self->routes;

	$r->get('/hello')->to('example#hello');
	$r->any('/link')->detour(app => DTaskLinkApp->new );
	#$r->any('/info')->detour(app => DTaskInfoApp->new );
	$r->any('/export')->detour(app => DTaskExportApp->new );
	$r->any('/task')->detour(app => DTaskTaskApp->new );
	$r->any('/tower')->detour( app => DTaskTowerApp->new );
	$r->any('/bugzilla')->detour(app => DTaskBugzillaApp->new );
}

1;

